import a from "../a"
import b from "../b"
import c from "../c"
export default [
    {
        path: '/',
        redirect: "/layout",
    },
    {
        path: "/layout",
        name: "layout",
        redirect: "/layout/home",
        component: () => import("@/layout/index.vue"),
        children: [
            {
                path: "home",
                name: "home",
                meta: {
                    title: "主页",
                    icon: "",
                    name: "home",
                },

                component: () => import("@/views/base/home.vue"),
            },
            {
                path: "test",
                name: "test",
                meta: {
                    title: "测试",
                    icon: "",
                    name: "test",
                },
                component: () => import("@/views/test/index.vue"),
            },
            ...a,
            ...b,
            ...c

        ],
    },
    {
        path: '/login',
        name: 'login',
        meta: {
            title: '登录',
            icon: 'iconfont icon-home',
            keepAlive: true,
            permission: ['fieldControl:fsnapshot:register']
        },
        component: () => import("@/views/base/login.vue"),
    },
    {
        path: "/:pathMatch(.*)*",
        meta: {
            title: "404",
            icon: "",
            name: "404",
        },
        component: () => import("@/components/NotFound.vue"),
    },
]